const express=require('express');
const router=express.Router();
const {createColl,selectColl,deleteColl} =require('../service/CollectionService.js');

router.post('/createColl',async function(req, res,next){
  let data = await createColl(req.body);
});

router.post('/selectColl',async function(req, res, next){
  let data = await selectColl(req.body)
  res.send(data);
})

router.post('/deleteColl',async function(req, res, next){
  let data = await deleteColl(req.body)

})
module.exports =router;